<?php
$server='127.0.0.1:3305';
$user='root';
$pwd='sfwowchina';
$db='322_world';
include('adodb/adodb.inc.php');
$DB = NewADOConnection('mysql');
$DB->Connect($server, $user, $pwd, $db);# M'soft style data retrieval with binds



//$rs = $DB->Execute("select * from table where key=?",array($key));
//while (!$rs->EOF) {
//    print_r($rs->fields);
//    $rs->MoveNext();
//}

# PEAR style data retrieval
$rs = $DB->Execute("select * from item_template where entry <100");
while ($array = $rs->FetchRow()) {
    print_r($array);
}


